package yag.battle.factory;

import org.springframework.stereotype.Component;
import yag.battle.model.Horseman;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by user on 25.08.2014.
 */
@Component
public class HorsemanFactory {

    public List<Horseman> createHorsemans(int count) {

        List<Horseman> list = new ArrayList<Horseman>(count);
        for (int i = 0; i < count; i++) {
            list.add(new Horseman());
        }
        return list;
    }

}
